﻿@model KKU.RBSFPP.Web.Administrator.Models.LoginModel

@{
    ViewBag.Title = "Log in";
}

<div class="alert alert-info">
    <h2>เข้าสู่ระบบ</h2>
    
</div>

<section id="loginForm">
@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) {
    @Html.AntiForgeryToken()
    <div><h3>@Html.ValidationSummary(true)</h3></div>
    
    <fieldset>
        <legend></legend>
        <ol>

            <table width="400px" align="center">
                <tr><td><h4>ชื่อผู้ใช้</h4></td></tr>
                <tr>
                    <td>
                        <p>
                        @Html.TextBoxFor(m => m.UserName, new { @class = "form-control", placeholder = "กรอกชื่อผู้ใช้" })
                        @Html.ValidationMessageFor(m => m.UserName)
                        </p>
                    </td>
                </tr>
                <tr><td><h4>รหัสผ่าน</h4></td></tr>
                <tr>
                    <td>
                        <p>
                            @Html.PasswordFor(m => m.Password, new { @class = "form-control", placeholder = "กรอกรหัสผ่าน" })
                            @Html.ValidationMessageFor(m => m.Password) 
                        </p>
                    </td>
                </tr>
                <tr><td><button type="submit" class="btn btn-success"><span class="glyphicon glyphicon-ok-circle"></span> เข้าสู่ระบบ</button></td></tr>
            </table>

           @* <li>
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })
            </li>*@
        </ol>
    </fieldset>
    @*<p>
        @Html.ActionLink("สมัครสมาชิก", "Register") 
    </p>*@
}


@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
